import { get, post, postForm, put, del } from '@/config/http'
import { praseStrEmpty } from "@/config/ruoyi";

/**
  *用户管理
  */
 export const getCustomerDetails = params => post('/b/customer/getCustomerDetails',params);
 export const getCustomerList = params => post('/b/customer/getCustomerList',params);

 /**
   *活动
   */
  export const BactivityGoodsAddActivityGoods = params => post('/b/activityGoods/addActivityGoods',params);
  export const BgetActivityGoodsList = params => post('/b/activityGoods/getActivityGoodsList',params);
  export const BactivityGoodsenableOrDisable = params => postForm('/b/activityGoods/enableOrDisable',params);
  export const BgetActivityGoodsDetails = params => postForm('/b/activityGoods/getActivityGoodsDetails',params);
  export const BupdateActivityGoods = params => post('/b/activityGoods/updateActivityGoods',params);

  export const setGoodsCollectionAddress = params => post('/b/activityModule/setGoodsCollectionAddress',params);
  export const activityModuleEnableOrDisable = params => postForm('/b/activityModule/enableOrDisable',params);
  export const getGoodsCollectionAddress = params => post('/b/activityModule/getGoodsCollectionAddress',params);
  export const cancelOrSettings = params => postForm('/b/customer/cancelOrSettings',params);
  export const getStoreDetails = params => postForm('/b/storeInfo/getStoreDetails',params);

 /**
 *门店入驻
 */
  export const BstoreApply = params => post('/b/storeApply/storeApply',params);
  export const BgetStoreAuditList = params => post('/b/storeApply/getStoreAuditList',params);
  export const BgetBankAreaList = params => post('/b/bankArea/getBankAreaList',params);
  export const BgetBankInfo = params => postForm('/b/bankArea/getBankInfo',params);
  export const BgetStoreList = params => post('/b/storeInfo/getStoreList',params);
  export const BgetStoreApplyDetails = params => postForm('/b/storeApply/getStoreApplyDetails',params);
  export const BauditStoreInfo = params => post('/b/storeApply/auditStoreInfo',params);
  export const BStoreSetRate = params => postForm('/b/storeInfo/setRate',params);
  export const editStore = params => post('/b/storeApply/updateStoreOtherInfo',params);
 /**
 *商品审核
 */
  export const BauditGoods = params => post('/b/goodsAudit/auditGoods',params);
  export const BgetGoodsDetails = params => postForm('/b/goodsAudit/getGoodsDetails',params);
  export const BgoodsGetList = params => post('/b/goodsAudit/getList',params);

/**
 *banner
 */
  export const BaddBanner = params => post('/b/bannerInfo/addBanner',params);
  export const BdelBanner = params => postForm('/b/bannerInfo/delBanner',params);
  export const BenableOrDisable = params => postForm('/b/bannerInfo/enableOrDisable',params);
  export const BgetBannerList = params => post('/b/bannerInfo/getBannerList',params);


/**
  *活动商品管理
  */
 export const addActivityModule = params => post('/b/activityModule/addActivityModule',params);
 export const addModuleGoods = params => post('/b/activityModule/addModuleGoods',params);
 export const delModuleGoods = params => postForm('/b/activityModule/delModuleGoods',params);
 export const getActivityModuleList = params => postForm('/b/activityModule/getActivityModuleList',params);
 export const getStoreOrGoodsList = params => postForm('/b/activityModule/getStoreOrGoodsList',params);
 export const updateActivityModule = params => post('/b/activityModule/updateActivityModule',params);
 export const auditModuleGoods = params => postForm('/b/activityModule/auditModuleGoods',params);


 /**
   *商品管理
   */
  export const BgetGoodsList = params => post('/b/goodsInfo/getGoodsList',params);
  export const BupdateGoods = params => post('/b/goodsInfo/updateGoods',params);

/**
  *文章管理
  */
 export const BdelArticle = params => post('/b/article/delArticle',params);
 export const BgetArticleDetails = params => post('/b​/article​/getArticleDetails',params);
 export const BArticleList = params => post('/b/article/list',params);
 export const BArticleSave = params => post('/b/article/save',params);
 export const BArticleUpdate = params => post('/b/article/update',params);
 export const BArticleUpdateStatus = params => post('/b/article/updateStatus',params);

 /**
   *圈子审核
   */
  export const getFriendCirclePosts = params => post('/friendCircle/getFriendCirclePosts',params);
  export const auditPost = params => post('/friendCircle/auditPost',params);

/**
  *消息推送
  */
 export const addMessage = params => post('/system/messageCenter/addMessage',params);
 export const getMessageList = params => post('/system/messageCenter/getMessageList',params);
 export const messageCenterAudit = params => post('/system/messageCenter/audit',params);

 /**
   *订单列表
   */
  export const getOrderList = params => post('/order/getOrderList',params);
  export const getOrderStatusCount = params => post('/order/getOrderStatusCount',params);
  export const orderExport = params => post('/order/export',params);

  /**
    *商家管理
    */
   export const updateStoreStatus = params => postForm('/b/storeInfo/updateStoreStatus',params);

  /**
    *优惠卷管理
    */
  export const addCoupon = params => post('/b/couponConfig/addCoupon',params);
  export const addCouponGoods = params => post('/b/couponConfig/addCouponGoods',params);
  export const getCouponList = params => post('/b/couponConfig/getCouponList',params);
  export const couponConfigEnableOrDisable = params => postForm('/b/couponConfig/enableOrDisable',params);
  export const getCouponGoodsList = params => post('/b/couponConfig/getCouponGoodsList',params);
  export const delCouponGoods = params => postForm('/b/couponConfig/delCouponGoods',params);
  export const getCouponQRCodeList = params => post('/b/couponConfig/getCouponQRCodeList',params);







/*字典 分类公共方法*/
export const getCategoryDetailsNew = params => get('/system/category/getCategoryDetails?status=1',params);
export const dictionariesDetailgetDictsNew = dictType => get('/system/dict/data/type/' + dictType,'');


  /**
  *获取语音机器人的全部客户
  */
 export const getCallRecord = params => get('sale/open/getCallRecord',params);
 export const logout = params => post('/logout',params);
 export const uploadQrCode = params => postForm('/system/file/uploadQrCode',params);

 export const operationCategory = params => postForm('/system/category/operationCategory',params);
 export const clearPoints = params => post('/points/clearPoints',params);
 /**
  *获取意向客户等级
  */
 export const getIclevel = params => get('sale/open/getIclevel',params);

 /*获取按钮权限*/
 export const getButtonJurisdictionInfo = params => get('/getInfo',params);
 export const updateGoodsStatus = params => postForm('/goodsQuery/updateGoodsStatus',params);
 /**
  *地区设置
  */
 export const goodsQuerylist = params => post('/goodsQuery/list',params);
 export const getGoodsDetail = params => postForm('/goodsQuery/getGoodsDetail',params);
 export const settingPointsOrCommission = params => postForm('/goodsQuery/settingPointsOrCommission',params);

 /**
  *积分兑换商品列表
  */
 export const pointsGoodsAdd = params => post('/pointsGoods/add',params);
 export const pointsGoodsList = params => post('/pointsGoods/list',params);
 export const pointsGoodsDelete = params => postForm('/pointsGoods/delete',params);
 export const pointsGoodsUpdate = params => post('/pointsGoods/update',params);

 export const getExchangeRecordList = params => post('/pointsGoods/getExchangeRecordList',params);

 /**
  *活动商品
  */
  export const getActivityType = params => post('/activityGoods/getActivityType',params);
  export const activityGoodsGetActivityGoodsList = params => post('/activityGoods/getActivityGoodsList',params);
  export const activityGoodsAddActivityGoods = params => post('/activityGoods/addActivityGoods',params);
  export const deleteActivityGoods = params => postForm('/activityGoods/deleteActivityGoods',params);
  export const activityGoodsupdateStatus = params => postForm('/activityGoods/updateStatus',params);
  export const addActivityColumn = params => post('/activityGoods/addActivityColumn',params);

  /**
   *商品模块
   */
   // export const addGoodsModule = params => post('/goodsModule/addGoodsModule',params);
   // export const addRelationGoods = params => post('/goodsModule/addRelationGoods',params);
   // export const getModuleGoodsList = params => postForm('/goodsModule/getModuleGoodsList',params);
   // export const getModuleList = params => post('/goodsModule/getModuleList',params);
   // export const delModuleGoods = params => postForm('/goodsModule/delModuleGoods',params);
   // export const settingCoverImg = params => postForm('/goodsModule/settingCoverImg',params);


 /**
  *好礼好店订单
  */
 export const orderGetAfterSaleInfo = params => postForm('/order/getAfterSaleInfo',params);
 export const getOrderQuantity = params => postForm('/order/getOrderQuantity',params);
 export const orderList = params => post('/order/list',params);
 export const orderRead = params => postForm('/order/read',params);
 export const orderRefund = params => postForm('/order/orderRefund',params);
 export const hotGoodsGetCategoryGoodsList = params => post('/hotGoods/getCategoryGoodsList',params);

  /**
   *首页
   */
  export const activeMerchants = params => post('/indexCensus/activeMerchants',params);
  export const getIndexStatistics = params => post('/indexCensus/getIndexStatistics',params);
  export const pointsActiveUsers = params => post('/indexCensus/pointsActiveUsers',params);
  export const bestSellers = params => post('/indexCensus/bestSellers',params);
  export const getIndexOrderStatistics = params => post('/indexCensus/getIndexOrderStatistics',params);

 /**
  *优惠券发放配置管理
  */
 export const couponGiveConfigAdd = params => post('/couponGiveConfig/add',params);
 export const couponGiveConfigDel = params => postForm('/couponGiveConfig/del/'+params.id,'');
 export const couponGiveConfigDetail = params => postForm('/couponGiveConfig/detail/'+params.id,'');
 export const couponGiveConfigEdit = params => post('/couponGiveConfig/edit',params);
 export const couponGiveConfigList = params => post('/couponGiveConfig/list',params);
 export const couponGiveConfigUserList = params => post('/couponGiveConfig/userList',params);
 export const grantCoupon = params => postForm('/couponGiveConfig/grantCoupon',params);

 /**
  *品牌信息
  */
 export const goodsBrandInfoAdd = params => post('/goodsBrandInfo/add',params);
 export const goodsBrandInfoDel = params => postForm('/goodsBrandInfo/del',params);
 export const goodsBrandInfoDetail = params => postForm('/goodsBrandInfo/detail',params);
 export const goodsBrandInfoEdit = params => post('/goodsBrandInfo/edit',params);
 export const goodsBrandInfoList = params => post('/goodsBrandInfo/list',params);
 export const goodsBrandInfoDisable = params => postForm('/goodsBrandInfo/disable',params);

 /**
  *优惠券配置管理
  */
 export const couponConfigAdd = params => post('/couponConfig/add',params);
 export const couponConfigDel = params => postForm('/couponConfig/del/'+params.id,'');
 export const couponConfigDetail = params => post('/couponConfig/detail/'+params.id,'');
 export const couponConfigEdit = params => post('/couponConfig/edit',params);
 export const couponConfigList = params => post('/couponConfig/list',params);

 /**
  *登录
  */
 export const login = params => post('/login',params);
 export const getRouters = params => get('/getRouters',params);
 export const getConfigKey = configKey => get('/system/config/configKey/' + configKey,'');

 /**
  *标签管理
  */
 export const addTag = params => postForm('/system/tag/addTag',params);
 export const getTagCategory = params => get('/system/tag/getTagCategory',params);
 export const getTagList = params => postForm('/system/tag/getTagList',params);
 export const deleteTag = params => get('/system/tag/delete',params);

 /**
  *商品运营
  */
 export const addGoodsOperationGroup = params => postForm('/goods/operationPopularGoods/addGoodsOperationGroup',params);
 export const getGoodsColumnList = params => post('/goods/operationPopularGoods/getGoodsColumnList',params);
 export const getOperationGoodsLists = params => post('/goods/operationPopularGoods/getOperationGoodsList',params);
 export const getOperationGroupList = params => post('/goods/operationPopularGoods/getOperationGroupList',params);
 export const removeOperationGroupById = params => postForm('/goods/operationPopularGoods/removeById',params);
 export const operationPopularGoodsSortUp = params => postForm('/goods/operationPopularGoods/sortUp',params);
 export const operationPopularGoodsUpTop = params => postForm('/goods/operationPopularGoods/upTop',params);
 export const updOperationConfigOrder = params => post('/goods/goodsOperationConfig/updOperationConfigOrder',params);

 /**
  *登录日志
  */
 export const loadinLoglist = params => get('/monitor/logininfor/list',params);
 export const delLogininfor = params => del('/monitor/logininfor/'+params,'');
 export const cleanLogininfor = params => del('/monitor/logininfor/clean',params);
 export const exportLogininfor = params => get('/monitor/logininfor/export',params);

 /**
  *操作日志
  */
 export const operloglist = params => get('/monitor/operlog/list',params);
 export const delOperlog = params => del('/monitor/operlog/'+params,'');
 export const cleanOperlog = params => del('/monitor/operlog/clean',params);
 export const exportOperlog = params => get('/monitor/operlog/export',params);
 /**
  *地区设置
  */
 export const getRegionList = params => get('/system/area/getList',params);
 export const setRegion = params => postForm('/system/area/setRegion',params);

 /**
  *地区设置
  */
 export const storeUserGetAllStore = params => post('/system/storeUser/getAllStore',params);
 export const storeUserInitStoreUser = params => postForm('/system/storeUser/initStoreUser',params);

 /**
  *商品运营
  */
 export const getOperationGoodsList = params => post('/goods/operationGoods/getOperationGoodsList',params);
 export const operationGoodssortUp = params => postForm('/goods/operationGoods/sortUp',params);
 export const operationGoodsupTop = params => postForm('/goods/operationGoods/upTop',params);
 export const getCategoryGoodsList = params => post('/goods/operationGoods/getCategoryGoodsList',params);
 export const addOperationGroup = params => postForm('/goods/operationGoods/addOperationGroup',params);
 export const updateOperationGoods = params => post('/goods/operationGoods/updateOperationGoods',params);
 export const operationGoodsRemovep = params => postForm('/goods/operationGoods/removeById',params);

 /**
  *商品运营配置
  */
 export const addGoodsOperationConfig = params => post('/goods/goodsOperationConfig/addGoodsOperationConfig',params);
 export const getOperationConfigList = params => post('/goods/goodsOperationConfig/getOperationConfigList',params);
 export const getConfigDetail = params => postForm('/goods/goodsOperationConfig/getConfigDetail',params);
 export const updateOperationConfig = params => post('/goods/goodsOperationConfig/updateOperationConfig',params);
 export const goodsOperationConfigDelete = params => postForm('/goods/goodsOperationConfig/delete',params);
 export const goodsOperationConfigUpdateStatus = params => postForm('/goods/goodsOperationConfig/updateStatus',params);

 /**
  *分类管理
  */
 export const getCategoryList = params => get('/system/category/getCategoryList',params);
 export const categoryList = params => get('/system/category/categoryList',params);
 export const getCategoryDetails = params => get('/system/category/getCategoryDetails',params);
 export const whetherInvocation = params => get('/system/category/whetherInvocation',params);
 export const addCategory = params => postForm('/system/category/addCategory',params);
 export const deleteCategory = params => postForm('/system/category/deleteCategory',params);
 export const updateCategory = params => postForm('/system/category/updateCategory',params);
export const  updateLevel = params => post('/system/category/updateLevel',params);
export const  addOperationType = params => post('/goods/goodsOperationConfig/addOperationType',params);

 /**
  *字典管理
  */
 export const dictionarieslistType = params => get('/system/dict/type/list',params);
 export const dictionariesgetType = dictId => get('/system/dict/type/' + dictId,'');
 export const dictionariesaddType = params => post('/system/dict/type',params);
 export const dictionariesupdateType = params => put('/system/dict/type',params);
 export const dictionariesdelType = params => del('/system/dict/type/' + dictId,params);
 export const dictionariesoptionselect = params => get('/system/dict/type/optionselect',params);

 /**
  *字典详情
  */
 export const dictionariesDetaillistData = params => get('/system/dict/data/list',params);
 export const dictionariesDetailgetData = dictCode => get('/system/dict/data/' + dictCode,'');
 export const dictionariesDetailgetDicts = dictType => get('/system/dict/data/type/' + dictType,'');
 export const dictionariesDetailaddData = params => post('/system/dict/data',params);
 export const dictionariesDetailupdateData = params => put('/system/dict/data',params);
 export const dictionariesDetaildelData = dictCode => del('/system/dict/data/' + dictCode,'');
 export const dictionariesDetailexportData = params => get('/system/dict/data/export',params);

  /*用户管理*/
  export const listUser = params => get('/system/user/list',params);
  export const getUser = userId => get('/system/user/' + praseStrEmpty(userId),'');
  export const addUser = params => post('/system/user',params);
  export const updateUser = params => put('/system/user',params);
  export const delUser = userId => del('/system/user/' + userId,'');
  export const exportUser = params => get('/system/user/export',params);
  export const resetUserPwd = params => post('/system/user/resetPwd',params);
  export const changeUserStatus = params => put('/system/user/changeStatus',params);
  export const getUserProfile = params => get('/system/user/profile',params);
  export const updateUserProfile = params => put('/system/user/profile',params);
  export const updateUserPwd = params => postForm('/system/user/profile/updatePwd',params);
  //export const uploadAvatar = params => post('/system/user/profile/avatar',params);
  export const uploadAvatar = params => post('/system/file/upload',params);
  export const importTemplate = params => get('/system/user/importTemplate',params);
  export const getAuthRole = params => get('/system/user/authRole/'+params,'');
  export const updateAuthRole = params => put('/system/user/authRole',params);
  export const addIdcard = params => post('/idcard/addIdcard',params);
  export const updIdcardList = params => post('/idcard/updIdcard',params);
  export const resetPwdUser = params => postForm('/customer/resetPwd',params);

/*架构设置*/
 export const listDept = params => get('/system/dept/list',params);
 export const listDeptExcludeChild = params => get('/system/dept/list/exclude',params);
 export const getDept = params => get('/system/dept/'+params.id,'');
 export const treeselect = params => get('/system/dept/treeselect',params);
 export const roleDeptTreeselect = params => get('/system/dept/roleDeptTreeselect/'+params,'');
 export const addDept = params => post('/system/dept',params);
 export const updateDept = params => put('/system/dept',params);
 export const delDept = params => del('/system/dept/'+params,'');

 /*菜单管理*/
  export const listMenu = params => get('/system/menu/list',params);
  export const getMenu = params => get('/system/menu/'+params,'');
  export const menuTreeselect = params => get('/system/menu/treeselect',params);
  export const roleMenuTreeselect = params => get('/system/menu/roleMenuTreeselect/'+params,'');
  export const addMenu = params => post('/system/menu',params);
  export const updateMenu = params => put('/system/menu',params);
  export const delMenu = params => del('/system/menu/'+params,'');

  /*角色管理*/
  export const listRole = params => get('/system/role/list',params);
  export const getRole = roleId => get('/system/role/' + roleId,'');
  export const addRole = params => post('/system/role',params);
  export const updateRole = params => put('/system/role',params);
  export const dataScope = params => put('/system/role/dataScope',params);
  export const changeRoleStatus = params => put('/system/role/changeStatus',params);
  export const delRole = roleId => del('/system/role/' + roleId,'');
  export const exportRole = params => get('/system/role/export',params);
  export const allocatedUserList = params => get('/system/role/authUser/allocatedList',params);
  export const unallocatedUserList = params => get('/system/role/authUser/unallocatedList',params);
  export const authUserCancel = params => put('/system/role/authUser/cancel',params);
  export const authUserCancelAll = params => put('/system/role/authUser/cancelAll',params);
  export const authUserSelectAll = params => put('/system/role/authUser/selectAll',params);


  /*商品审核*/
  export const auditGoods = params => postForm('/goodsAudit/auditGoods',params);
  export const goodsAuditList = params => post('/goodsAudit/list',params);
  export const getStoreMarkupRate = params => postForm('/goodsAudit/getStoreMarkupRate',params);
  export const goodsCategoryList = params => postForm('/goodsAudit/getCategoryList',params);

  export const applyHotGoods = params => post('/goodsAudit/updateGoodsInfo',params);

  /*好礼商品审核*/
  export const hotGoodsAuditHotGoods = params => postForm('/hotGoods/auditHotGoods',params);
  export const hotGoodsList = params => post('/hotGoods/list',params);
  export const hotGoodsSortUp = params => postForm('/hotGoods/sortUp',params);
  export const deleteHotGoods = params => postForm('/hotGoods/deleteHotGoods',params);

  /*用户管理*/
  export const getAllMemberLevel = params => post('/customer/getAllMemberLevel',params);
  export const getConsumptionRecords = params => postForm('/customer/getConsumptionRecords',params);
  export const getCustomerDetail = params => postForm('/customer/getCustomerDetail',params);
  export const getEvaluation = params => postForm('/customer/getEvaluation',params);
  export const getRecommendedInfo = params => postForm('/customer/getRecommendedInfo',params);
  export const customerList = params => post('/customer/list',params);
  export const updateMemberLevel = params => postForm('/customer/updateMemberLevel',params);
  export const addTagRelevancy = params => postForm('/customer/addTagRelevancy',params);
  export const customerSave = params => post('/customer/save',params);
  export const customerDelete = params => get('/customer/delete',params);
  export const selCustomer = params => postForm('/customer/selCustomer',params);
  export const selReturnedValue = params => postForm('/customer/selReturnedValue',params);
  export const userChangeStatus = params => postForm('/customer/changeStatus',params);
  export const modifySuperior = params => postForm('/customer/modifySuperior',params);
  export const getCustromerTel = params => postForm('/customer/getCustromerTel',params);
  export const getModifySuperiorList = params => postForm('/customer/getModifySuperiorList',params);

  /*商家管理*/
  export const getAllStore = params => postForm('/system/storeUser/getAllStore',params);
  export const initStoreUser = params => post('/system/storeUser/initStoreUser',params);
   export const updateGoodsInfo = params => post('/goodsAudit/updateGoodsInfo',params);


  /*会员加盟*/
  export const getSystemSetting = params => get('/system/paramSet/getSystemSetting',params);
  export const updSystemSetting = params => post('/system/paramSet/updSystemSetting',params);
  export const unionExport = params => postForm('/union/export',params);
  export const getUnionTel = params => post('/union/getUnionTel',params);

  /*商家管理*/
  export const storeChangeStatus = params => postForm('/store/storeInfo/changeStatus',params);
  export const storeGetList = params => post('/store/storeInfo/getList',params);
  export const getStoreInfo = params => postForm('/store/storeInfo/getStoreInfo',params);
  export const saveStore = params => post('/store/storeInfo/saveStore',params);
  export const updateStore = params => post('/store/storeInfo/updateStore',params);
  export const delStore = params => postForm('/store/storeInfo/delStore',params);
  export const updateStoreMcht = params => postForm('/store/storeInfo/updateStoreMcht',params);


  /*商家入驻*/
  export const customerStoreChangeAudit = params => post('/customerStore/auditStoreInfo',params);
  export const customerStoreList = params => post('/customerStore/getList',params);
  export const saveCustomerStore = params => post('/customerStore/saveCustomerStore',params);
  export const selOneCustomer = params => postForm('/customerStore/selOne',params);
  export const getStoreInfoById = params => postForm('/customerStore/getStoreInfoById',params);
  export const updateCustomerStore = params => postForm('/customerStore/updateCustomerStore',params);
  export const storeApply = params => post('/store/storeRegister/storeApply',params);

  export const getUserType = params => postForm('/customerStore/getUserType',params);
  export const getInvitationCode = params => postForm('/customerStore/getInvitationCode',params);

  /*实名认证*/
  export const idcardList = params => post('/idcard/list',params);
  export const idcardBatchAudit = params => get('/idcard/batchAudit',params);
  export const getIdcardDetails = params => postForm('/idcard/getIdcardDetails',params);

  /*商家入驻*/
  export const storePromotionAdd = params => post('/store/storePromotion/add',params);
  export const storePromotionDelete = params => post('/store/storePromotion/delete',params);
  export const storePromotionList = params => post('/store/storePromotion/list',params);
  export const storePromotionRead = params => postForm('/store/storePromotion/read',params);
  export const storePromotionAudit = params => get('/store/storePromotion/audit',params);
  export const storePromotionUpdate = params => post('/store/storePromotion/update',params);
  export const storePromotionSotreList = params => post('/store/storePromotion/sotreList',params);

  export const getBankInfo = params => postForm('/api/cashDeposit/getBankInfo',params);
  export const updateStoreApplyBaseInfo = params => post('/customerStore/updateStoreApplyBaseInfo',params);
  export const getBankAreaList = params => post('/bankArea/area/getBankAreaList',params);
  export const updateStoreOtherInfo = params => post('/customerStore/updateStoreOtherInfo',params);

  /*加盟商家审核*/
  export const unionList = params => post('/union/list',params);
  export const getUnion = params => postForm('/union/getUnion',params);
  export const unionAudit = params => postForm('/union/audit',params);
  export const unionSave = params => post('/union/save',params);
  export const getExistAndLevel = params => postForm('/customer/getExistAndLevel',params);


  /*广告管理*/
  export const getAdvertisList = params => post('/advertis/getAdvertisList',params);
  export const advertisList = params => post('/advertis/list',params);
  export const delAdvertis = params => postForm('/advertis/delAdvertis',params);
  export const getAdvertisDetails = params => postForm('/advertis/getAdvertisDetails',params);
  export const advertisSave = params => post('/advertis/save',params);
  export const advertisUpdate = params => post('/advertis/update',params);
  export const advertisUpdateStatus = params => postForm('/advertis/updateStatus',params);
  export const getProductList = params => post('/advertis/getProductList',params);


  /*广告管理*/
  export const articleList = params => post('/b/article/list',params);
  export const articleDelArticle = params => postForm('/b/article/delArticle',params);
  export const getArticleDetails = params => post('/b/article/getArticleDetails',params);
  export const articleSave = params => post('/b/article/save',params);
  export const articleUpdate = params => post('/b/article/update',params);
  export const articleUpdateStatus = params => postForm('/b/article/updateStatus',params);

  /*用户收益*/
  export const getEarningsList = params => post('/earnings/list',params);
  export const getMentionWithdraw = params => postForm('/earnings/getMentionWithdraw',params);
  export const getTotalRevenue = params => postForm('/earnings/getTotalRevenue',params);
  export const withdrawSave = params => post('/withdraw/save',params);

  /*意见反馈*/
  export const delMessageFeed = params => postForm('/messageFeedback/delMessageFeed',params);
  export const messageFeedbacklist = params => post('/messageFeedback/list',params);

  /*任务提醒*/
  export const getTaskList = params => post('/messageFeedback/getTaskList',params);

  /*消息推送*/
  export const messageSendAdd = params => post('/messageSend/add',params);
  export const messageSendAudit = params => postForm('/messageSend/audit',params);
  export const messageSendList = params => post('/messageSend/list',params);
  export const messageSendUpdate = params => post('/messageSend/update',params);
  export const getNoticeCount = params => post('/messageFeedback/getNoticeCount',params);

  /*提现审批*/
  export const cashDepositAudit = params => postForm('/api/cashDeposit/audit',params);
  export const cashDepositList = params => post('/api/cashDeposit/list',params);
  export const getUserDepositTotal = params => post('/api/cashDeposit/getUserDepositTotal',params);


  /*商户号注册*/
  export const getStoreAccountList = params => post('/store/storeRegister/getStoreAccountList',params);
  export const registerAccount = params => postForm('/store/storeRegister/registerAccount',params);
  export const sendNotifyRepeat = params => postForm('/store/storeRegister/sendNotifyRepeat',params);

  /*商户号注册*/
  export const getSettlementQuantity = params => post('/report/statisticsReport/getSettlementQuantity',params);
  export const settlementExport = params => postForm('/report/statisticsReport/settlementExport',params);
  export const settlementList = params => post('/report/statisticsReport/settlementList',params);

  /*候鸟分账报表*/
  export const hnSettleOrderList = params => post('/hnSettleOrder/list',params);
  export const houNiaoOrderExport = params => post('/hnSettleOrder/houNiaoOrderExport',params);

  /*用户提现报表*/
  export const withdrawalList = params => post('/report/withdrawalStatements/withdrawalList',params);
  export const withdrawalMessage = params => postForm('/report/withdrawalStatements/withdrawalMessage',params);
  export const getWithdrawalQuantity = params => post('/report/withdrawalStatements/getWithdrawalQuantity',params);
  export const withdrawalExport = params => post('/report/withdrawalStatements/withdrawalExport',params);

  /*云仓销售报表*/
  export const getYCSalesReportQuantity = params => post('/report/ycSalesReport/getYCSalesReportQuantity',params);
  export const ycSalesReportExport = params => post('/report/ycSalesReport/ycSalesReportExport',params);
  export const ycSalesReportList = params => post('/report/ycSalesReport/ycSalesReportList',params);

  /*云仓销售报表（易宝支付）*/
  export const getYCYeePaySalesReportQuantity = params => post('/report/ycYeePaySalesReport/getYCYeePaySalesReportQuantity',params);
  export const ycYeePaySalesReportExport = params => post('/report/ycYeePaySalesReport/ycYeePaySalesReportExport',params);
  export const ycYeePaySalesReportList = params => post('/report/ycYeePaySalesReport/ycYeePaySalesReportList',params);

  /*商家销售报表*/
  export const getMerchantSalesReport = params => post('/report/merchantSales/getMerchantSalesReport',params);
  export const merchantSalesExport = params => post('/report/merchantSales/merchantSalesExport',params);
  export const merchantSalesList = params => post('/report/merchantSales/merchantSalesList',params);

  /*推荐报表*/
  export const getRecommendedReport = params => post('/report/recommended/getRecommendedReport',params);
  export const recommendedReportExport = params => post('/report/recommended/recommendedReportExport',params);
  export const recommendedReportList = params => post('/report/recommended/recommendedReportList',params);
  export const shareFansDetaile = params => postForm('/report/recommended/shareFansDetaile',params);
  export const shopSweepingDetaile = params => postForm('/report/recommended/shopSweepingDetaile',params);


  /*推荐加盟明细报表*/
  export const recommendedFranchiseetList = params => post('/report/recommended/recommendedFranchiseetList',params);
  export const recommendedFranchiseetExport = params => post('/report/recommended/recommendedFranchiseetExport',params);
  export const getRecommendedFranchisee = params => post('/report/recommended/getRecommendedFranchisee',params);

  /*用户区域划分*/
  export const getAllJurisdiction = params => post('/system/area/getAllJurisdiction',params);
  export const getJurisdictionAndLevel = params => postForm('/system/area/getJurisdictionAndLevel',params);
  export const getAreaList = params => get('/system/area/getList',params);
  export const getRegionProvince = params => postForm('/system/area/getRegionProvince',params);
  export const setJurisdiction = params => postForm('/system/area/setJurisdiction',params);
  export const setAreaRegion = params => post('/system/area/setRegion',params);
  export const updJurisdiction = params => postForm('/system/area/updJurisdiction',params);

  export const selJurisdictionByTwoId = params => postForm('/system/area/selJurisdictionByTwoId',params);


  /*订单交易退款报表*/
  export const getRefundQuantity = params => post('/report/transactionRefund/getRefundQuantity',params);
  export const refundExport = params => post('/report/transactionRefund/refundExport',params);
  export const refundList = params => post('/report/transactionRefund/refundList',params);

  /*易宝订单交易结算报表*/
  export const getYeePayStatisticsQuantity = params => post('/report/yeePayStatistics/getYeePayStatisticsQuantity',params);
  export const yeePaySettlementExport = params => post('/report/yeePayStatistics/yeePaySettlementExport',params);
  export const yeePaySettlementList = params => post('/report/yeePayStatistics/yeePaySettlementList',params);

 /*交易收益报表*/
  export const getTransactionIncomeQuantity = params => post('/report/transactionIncome/getTransactionIncomeQuantity',params);
  export const promotionTransactionItemList = params => post('/report/transactionIncome/promotionTransactionItemList',params);
  export const promotionTransactionItemQuantity = params => post('/report/transactionIncome/promotionTransactionItemQuantity',params);
  export const transactionIncomeExport = params => post('/report/transactionIncome/transactionIncomeExport',params);
  export const transactionIncomeList = params => post('/report/transactionIncome/transactionIncomeList',params);


  /*云仓总收益*/
  export const cloudTotalIncomeExport = params => post('/report/cloudTotalIncome/cloudTotalIncomeExport',params);
  export const getCloudTotalIncomeQuery = params => post('/report/cloudTotalIncome/getCloudTotalIncomeQuery',params);
  export const getCloudTotalIncomeList = params => post('/report/cloudTotalIncome/getList',params);

  /*平台总收益*/
  export const platformTotalGetList = params => post('/report/platformTotal/getList',params);
  export const getPlatformTotalQuery = params => post('/report/platformTotal/getPlatformTotalQuery',params);
  export const platformTotalExport = params => post('/report/platformTotal/platformTotalExport',params);

  /*客户端版本升级接口*/
  export const clientVersionUpdateAdd = params => post('/system/clientVersionUpdate/add',params);
  export const clientVersionUpdateDel = params => post('/system/clientVersionUpdate/del/'+params,'');
  export const clientVersionUpdateDetail = params => post('/system/clientVersionUpdate/detail/'+params,'');
  export const clientVersionUpdateEdit = params => post('/system/clientVersionUpdate/edit',params);
  export const clientVersionUpdateList = params => post('/system/clientVersionUpdate/list',params);


  /*评价管理*/
  export const addEvaluation = params => post('/evaluationManagement/addEvaluation',params);
  export const addReplyContent = params => postForm('/evaluationManagement/addReplyContent',params);
  export const addToSelfAssessment = params => postForm('/evaluationManagement/addToSelfAssessment',params);
  export const getEvaluationList = params => postForm('/evaluationManagement/getEvaluationList',params);
  export const evaluationManagementList = params => post('/evaluationManagement/list',params);
  export const removeEvaluation = params => postForm('/evaluationManagement/removeEvaluation',params);

  /*审核视频*/
  export const videoList = params => post('/video/list',params);
  export const videoAudit = params => postForm('/video/audit',params);
  export const videoDetail = params => postForm('/video/detail/'+params,'');
  export const videoOrderUpd = params => post('/video/orderUpd',params);
  export const videoEdit = params => post('/video/edit',params);
  export const videoAdd = params => post('/video/add',params);

  export const getPlayAuth = params => post('/video/getPlayAuth',params);
  export const getUploadAuth = params => postForm('/video/getUploadAuth',params);
  export const videoBindGoods = params => post('/video/bindGoods',params);
  export const videoDel = params => postForm('/video/del/'+params,'');


  /*用户数据统计*/
  export const behaviorStatisticsExport = params => post('/report/userStatistics/behaviorStatisticsExport',params);
  export const behaviorStatisticsList = params => post('/report/userStatistics/behaviorStatisticsList',params);
  export const couponItemList = params => post('/report/userStatistics/couponItemList',params);
  export const orderItemList = params => post('/report/userStatistics/orderItemList',params);
  export const transactionStatisticsExport = params => post('/report/userStatistics/transactionStatisticsExport',params);
  export const transactionStatisticsList = params => post('/report/userStatistics/transactionStatisticsList',params);

  // 可配置表单
  export const configFormList = params => post('/configForm/list',params);
  export const configFormAdd = params => post('/configForm/add',params);
  export const configFormDel = params => post('/configForm/del/'+ params ,'');
  export const configFormEdit = params => post('/configForm/edit',params);
  export const configFormDetail = params => post('/configForm/detail/'+ params ,'');

  // 积分兑换
  export const pointsExport = params => post('/points/pointsExport',params);
  export const pointsAdd = params => post('/points/add',params);
  export const pointsAudit = params => post('/points/audit',params);
  export const pointsDetail = params => post('/points/detail/'+ params ,'');
  export const pointsList = params => post('/points/list',params);
  export const pointsQueryPointsIncList = params => post('/points/queryPointsIncList',params);
  export const pointsQueryUserPointsList = params => post('/points/queryUserPointsList',params);
  export const userPointsExport = params => post('/points/userPointsExport',params);
  export const getManageParameter = params => post('/system/paramSet/getManageParameter',params);
  export const queryPointsIncNum = params => post('/points/queryPointsIncNum',params);
  export const getAvailablePoints = params => postForm('/points/getAvailablePoints',params);

  // 活动管理
  export const houniaoActivityGoodsAddActivity = params => post('/goods/houniaoActivityGoods/addActivity',params);
  export const getHnActivityList = params => post('/goods/houniaoActivityGoods/getHnActivityList',params);
  export const houniaoActivityGoodsUpdateActivity = params => post('/goods/houniaoActivityGoods/updateActivity',params);
  export const houniaoActivityGoodsUpdateStatus = params => postForm('/goods/houniaoActivityGoods/updateStatus',params);
  export const addActivityGoods = params => post('/goods/houniaoActivityGoods/addActivityGoods',params);
  export const updateActivityGoods = params => post('/goods/houniaoActivityGoods/updateActivityGoods',params);
  export const ActivityBatchDelete = params => postForm('/goods/houniaoActivityGoods/batchDelete',params);
  export const houniaoActivityGoodsImportData = params => post('/goods/houniaoActivityGoods/importData',params);
  export const getActivityGoodsList = params => postForm('/goods/houniaoActivityGoods/getActivityGoodsList',params);

  // 优惠券报表统计
  export const getCouponSource = params => post('/report/couponReport/getCouponSource',params);
  export const getCouponVerification = params => post('/report/couponReport/getCouponVerification',params);
  export const getOrderCouponItemList = params => postForm('/report/couponReport/getOrderCouponItemList',params);
  export const getPolylineStatistics = params => post('/report/couponReport/getPolylineStatistics',params);
  export const orderCouponItemListExport = params => postForm('/report/couponReport/orderCouponItemListExport',params);


  // 积分报表统计
  export const pointsReportGetCouponSource = params => post('/report/pointsReport/getCouponSource',params);
  export const getNewUserPoints = params => post('/report/pointsReport/getNewUserPoints',params);
  export const getNewUserStatistics = params => post('/report/pointsReport/getNewUserStatistics',params);
  export const getPointsDetailList = params => post('/report/pointsReport/getPointsDetailList',params);
  export const getPointsTotal = params => post('/report/pointsReport/getPointsTotal',params);
  export const pointsDetailListExport = params => post('/report/pointsReport/pointsDetailListExport',params);
  export const getPopulationDistribution = params => post('/report/pointsReport/getPopulationDistribution',params);

  // 订单统计
  export const orderStatisticsList = params => post('/report/orderStatistics/orderStatisticsList',params);
  export const statisticsYearOrderType = params => postForm('/report/orderStatistics/statisticsYearOrderType',params);
  export const getMonthOrderNumber = params => postForm('/report/orderStatistics/getMonthOrderNumber',params);
  export const getMonthOrderTypeNumber = params => postForm('/report/orderStatistics/getMonthOrderTypeNumber',params);
  export const getCategoryOrderNumber = params => postForm('/report/orderStatistics/getCategoryOrderNumber',params);
  export const orderListExport = params => post('/report/orderStatistics/orderListExport',params);

  // 用户统计
  export const getGrowthTrends = params => post('/report/userReport/getGrowthTrends',params);
  export const getUserAgeChart = params => post('/report/userReport/getUserAgeChart',params);
  export const getUserRegion = params => post('/report/userReport/getUserRegion',params);
  export const getUserSource = params => post('/report/userReport/getUserSource',params);
  export const userDetailDataExport = params => post('/report/userReport/userDetailDataExport',params);
  export const userDetailDataList = params => post('/report/userReport/userDetailDataList',params);

  // 黑白名单
  export const addBlackList = params => post('/blackWhiteList/addBlackList',params);
  export const addWhiteList = params => post('/blackWhiteList/addWhiteList',params);
  export const delBlackData = params => postForm('/blackWhiteList/delBlackData',params);
  export const delWhiteData = params => postForm('/blackWhiteList/delWhiteData',params);
  export const getBlackDetail = params => postForm('/blackWhiteList/getBlackDetail',params);
  export const getBlackList = params => post('/blackWhiteList/getBlackList',params);
  export const getWhiteDetail = params => postForm('/blackWhiteList/getWhiteDetail',params);
  export const getWhiteList = params => post('/blackWhiteList/getWhiteList',params);

  // 推广者管理
  export const promoterReviewaudit = params => postForm('/promoterReview/audit',params);
  export const promoterReviewauditExport = params => post('/promoterReview/auditExport',params);
  export const promoterReviewauditList = params => post('/promoterReview/auditList',params);
  export const promoterReviewlist = params => post('/promoterReview/list',params);
  export const manageListExport = params => post('/promoterReview/manageListExport',params);
  export const queryAlreadyRealname = params => post('/promoterReview/queryAlreadyRealname',params);
  export const promoterReviewqueryUserInfo = params => postForm('/promoterReview/queryUserInfo',params);
  export const savePromoterReview = params => postForm('/promoterReview/savePromoterReview',params);
  export const promoterReviewdelete = params => postForm('/promoterReview/delete',params);
  export const promoterReviewdisable = params => postForm('/promoterReview/disable',params);
  export const promoterReviewgetInfo = params => postForm('/promoterReview/getInfo',params);


  // 候鸟类目管理
  export const getHouNiaoGoodsCategory = params => postForm('/houniao/getHouNiaoGoodsCategory','');
  export const getLogisticsTrack = params => postForm('/houniao/getLogisticsTrack',params);
  export const updHouNiaoGoodsCategory = params => post('/houniao/updHouNiaoGoodsCategory',params);


  // 抽奖配置
  export const addOrUpdatePrize = params => post('/api/prizeConfig/addOrUpdatePrize',params);
  export const addPrizeActivity = params => post('/api/prizeConfig/addOrUpdatePrizeActivity',params);
  export const delPrize = params => postForm('/api/prizeConfig/delPrize',params);
  export const prizeActivityList = params => post('/api/prizeConfig/prizeActivityList',params);
  export const prizeConfigList = params => postForm('/api/prizeConfig/prizeConfigList',params);
  export const prizeDrawRecordList = params => post('/api/prizeConfig/prizeDrawRecordList',params);
